const routes = [
    {
      path: "/",
      component: () => import("@/pages/Login.vue"),
    },
    {
      path: "/plat",
      component: () => import("@/components/Layout.vue"),
      redirect: "/home",
      children: [
        {
          path: "/home",
          name: "home",
          component: () => import("@/pages/Home.vue"),
          meta: {
            title: "主页",
            icon: "home",
            affix: true,
          },
        },
        {
          path: "/xhs-account",
          name: "xhs-account",
          component: () => import("@/pages/XhsAccount.vue"),
          meta: {
            title: "账户管理",
            icon: "user",
            affix: true,
          },
        },
        {
          path: "/task-management",
          name: "task-management",
          component: () => import("@/pages/Task.vue"),
          meta: {
            title: "任务管理",
            icon: "task",
            affix: true,
          },
        },
        {
          path: "/note-management",
          name: "note-management",
          component: () => import("@/pages/Note.vue"),
          meta: {
            title: "笔记管理",
            icon: "note",
            affix: true,
          },
        },
        {
          path: "/account_maintenance_task",
          name: "account_maintenance_task",
          component: () => import("@/pages/AccountMaintenanceTask.vue"),
          meta: {
            title: "养号管理",
            icon: "note",
            affix: true,
          },
        },
      ],
    },
  ];
  
  export default routes;